---
title: Print File Content
tags:
- python
- file
- print
---

 Opening a file in python for reading is easy:
 with open('example.txt', 'r') as f:
 To get everything in the file, just use read()
     file_contents = f.read()
 And to print the contents, just do:
     print (file_contents)
 https://bit.ly/3io5Ucd
